<template>
  <div class="container">
      <!-- <top-nav>返回</top-nav> -->
    <workList :workList="workList1"  class="workList" v-if="workList1.length!=0 && !resume" ></workList>
     <resumeList :resume="workList1" v-else-if="workList1.length!=0 && resume"></resumeList>
    <div class="no-result" v-else-if="workList1.length">查询不到结果</div>
  </div>
</template>

<script>
import workList from '@/components/workList'
import topNav from '@/components/topNav'
import resumeList from "@/components/resumeList"

export default {
  data () {
    return {
      workList1:[],
      resume:'',
    }
  },
  computed:{
  
  },
  components: {
    workList,
    resumeList,
    topNav
  },

  methods: {

  },
  activated(){
    if(this.$route.query.type){
      this.resume=true
    }else{
      this.resume=false
    }
   this.workList1=this.$store.state.modulesSearch.searchData
  },
}
</script>

<style scoped>

.tip{width: 100%;height: 100px;}
.search{width: 350px;height: 100%;position: relative;margin-left: 7.25px;margin-top: 15px;}
.search input{width: 330px;height:30px;line-height: 30px;position: absolute;left: 0;top: 6.25px;background-color: #fff;border-radius: 10px;padding-left:20px;background-color: #f1f1f1;}
.search img{width: 20px;height: 20px;position: absolute;right: 10px;top: 10.25px;}
.workList{margin-top:45px !important; }
.no-result{
    width: 100%;
    height: 30px;
    font-size:20px;
    color:gray;
    line-height: 30px;
    position: absolute;
    top:100px;
    text-align:center;
}
</style>
